package net.siufung.boot.caffeine.exception;

import lombok.Getter;
import lombok.extern.slf4j.Slf4j;


/**
 * 缓存配置
 * @author 陈建峰
 * @since 2022/2/9 11:10 下午
 */
@Slf4j
public class NoSuchCacheException extends RuntimeException {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
    @Getter
    private String code = "-1";

    public NoSuchCacheException(String message) {
        super(message);
        log.debug(message);
    }

    public NoSuchCacheException(String code, String message) {
        super(message);
        this.code = code;
    }


}
